package org.assocsp3.modele;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotEmpty;

public class Login{
    
	 private String role;
	 
	 @NotEmpty
	 @Size(min=1, max=16)
	 private String login;
	 
	 @NotEmpty
	 @Size(min=1, max=128)
	 private String mdp;
    public Login() {
    }

    public Login(String role, String login, String mdp) {
       this.role = role;
       this.login = login;
       this.mdp = mdp;
    }

    public String getRole() {
        return this.role;
    }
    
    public void setRole(String role) {
        this.role = role;
    }
    public String getLogin() {
        return this.login;
    }
    
    public void setLogin(String login) {
        this.login = login;
    }
    public String getMdp() {
        return this.mdp;
    }
    
    public void setMdp(String mdp) {
        this.mdp = mdp;
    }

}
